import React from 'react'
import ReactDOM from 'react-dom/client'
import { Provider } from 'react-redux'
import { PersistGate } from 'redux-persist/integration/react'
import './main.less'
import moment from 'moment'
import zhCN from 'antd/lib/locale/zh_CN'
import 'moment/dist/locale/zh-cn'
import { ConfigProvider } from 'antd'
import Router from '@router/index'
import store, { persistor } from '@redux/index'
moment.locale('zh-cn')

ReactDOM.createRoot(document.getElementById('root')!).render(
  // <React.StrictMode>
      <Provider store={store}>
        <PersistGate loading={null} persistor={persistor}>
          <ConfigProvider locale={zhCN}>
            <Router />
          </ConfigProvider>
        </PersistGate>
      </Provider>
  // </React.StrictMode>
)
